.PHONY:all
all:test_cgi mysql_conn

test_cgi:test_cgi.cc
	g++ -o $@ $^

mysql_conn:mysql_conn.cc
	g++ -o $@ $^ -std=c++11 $$(mysql_config --cflags --libs)

.PHONY:clean
clean:
	rm -f test_cgi mysql_conn

